int lecturaSensor, nota;
float frecuencias[] = {
  329.63, // Mi
  349.23, // Fa
  369.99, // Fa#
  392.00, // Sol
  415.30, // Sol#
  440.00, // La
  466.17, // La#
  493.83, // Si
  523.25, // Do
  554.36, // Do#
  587.33, // Re
  622.25, // Re#
  659.26, // Mi
};
byte numFrecuencias=13; 

void setup(){
	Serial.begin(9600);
	pinMode(8,OUTPUT); 
}

void loop() {
      lecturaSensor=analogRead(0); 
      nota=map(lecturaSensor,0,1023,1,numFrecuencias);
      tone(8,frecuencias[nota]);
      delay(125); 
}

